package com.yj_app.qualitytest.info;

import android.text.TextUtils;

import androidx.annotation.NonNull;

import org.litepal.crud.LitePalSupport;

import java.io.Serializable;

public class QStandardInfo extends LitePalSupport implements Serializable {
    /**
     * ccode : 0102
     * cname : 粘口
     * istep : 2
     * itype : 2
     * imount : 0
     * itotal : 0
     */
//    private int id;
    private String ccode;
    private String cname;
    private String istep;
    private String itype;
    private String imount;
    private String itotal;

//    public int getId() {
//        return id;
//    }

//    public void setId(int id) {
//        this.id = id;
//    }

    public String getCcode() {
        return TextUtils.isEmpty(ccode) ? "" : ccode;
    }

    public void setCcode(String ccode) {
        this.ccode = (TextUtils.isEmpty(ccode) ? "" : ccode);
    }

    public String getCname() {
        return TextUtils.isEmpty(cname) ? "" : cname;
    }

    public void setCname(String cname) {
        this.cname = (TextUtils.isEmpty(cname) ? "" : cname);
    }

    public String getIstep() {
        return TextUtils.isEmpty(istep) ? "" : istep;
    }

    public void setIstep(String istep) {
        this.istep = (TextUtils.isEmpty(istep) ? "" : istep);
    }

    public String getItype() {
        return TextUtils.isEmpty(itype) ? "" : itype;
    }

    public void setItype(String itype) {
        this.itype = (TextUtils.isEmpty(itype) ? "" : itype);
    }

    public String getImount() {
        return TextUtils.isEmpty(imount) ? "" : imount;
    }

    public void setImount(String imount) {
        this.imount = (TextUtils.isEmpty(imount) ? "" : imount);
    }

    public String getItotal() {
        return TextUtils.isEmpty(itotal) ? "" : itotal;
    }

    public void setItotal(String itotal) {
        this.itotal = (TextUtils.isEmpty(itotal) ? "" : itotal);
    }

    @NonNull
    @Override
    public String toString() {
        return cname;
    }
}
